/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package servicios;

import Modelo.ClsRegistrarCliente;
import java.util.Date;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 *
 * @author ceballos
 */
@WebService(serviceName = "wsRegistro")
public class wsRegistro {

    /**
     * Web service operation
     */
    @WebMethod(operationName = "registrar")
    public String registrar(@WebParam(name = "doc") int doc, 
    @WebParam(name = "nom1") String nom1, 
    @WebParam(name = "nom2") String nom2, 
    @WebParam(name = "ape1") String ape1,
    @WebParam(name = "ape2") String ape2, 
    @WebParam(name = "fnac") Date fnac, 
    @WebParam(name = "email") String email) {
        //TODO write your implementation code here:
        ClsRegistrarCliente crc=new ClsRegistrarCliente(doc, nom1, nom2, ape1, ape2, fnac, email);
        if(crc.insertarCliente()){
            return "Ingresado con exito";
        }else{
            return "No se pudo ingresar";
        }
    }
}
